package com.wx.mall.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "有记录的spu表",description = "商品列表加数据记录")
public class SpuVa {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "SPU的ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "货号")
    private String sn;

    @ApiModelProperty(value = "SPU名")
    private String name;

    @ApiModelProperty(value = "副标题")
    private String caption;

    @ApiModelProperty(value = "品牌id")
    private Integer brandId;

    @ApiModelProperty(value = "一级分类")
    private Integer category1Id;

    @ApiModelProperty(value = "二级分类")
    private Integer category2Id;

    @ApiModelProperty(value = "三级分类")
    private Integer category3Id;

    @ApiModelProperty(value = "模版id")
    private Integer templateId;

    @ApiModelProperty(value = "运费模版id")
    private Integer freightId;

    @ApiModelProperty(value = "图片")
    private String image;

    @ApiModelProperty(value = "图片列表")
    private String images;

    @ApiModelProperty(value = "售后服务")
    private String saleService;

    @ApiModelProperty(value = "介绍")
    private String introduction;

    @ApiModelProperty(value = "规格列表")
    private String specItems;

    @ApiModelProperty(value = "参数列表")
    private String paraItems;

    @ApiModelProperty(value = "销量")
    private Integer saleNum;

    @ApiModelProperty(value = "评论数")
    private Integer commentNum;

    @ApiModelProperty(value = "是否上架（0上架,1下架）")
    private Integer isMarketable;

    @ApiModelProperty(value = "是否启用规格（0起1关）")
    private Integer isEnableSpec;

    @ApiModelProperty(value = "是否删除（0未删除1删除）")
    private Integer isDelete;

    @ApiModelProperty(value = "审核状态（0通过1未通过）")
    private Integer status;


    @ApiModelProperty(value = "记录条数")
    private Integer record;
}
